//
//  SNHomePageDetailChartView.h
//  project
//
//  Created by 黄建华 on 2017/11/25.
//  Copyright © 2017年 黄建华. All rights reserved.
//

// 图表日期类型
//typedef enum
//{
//    ChartDateDay = 0,
//    ChartDateWeek = 1,
//    ChartDateMonth = 2,
//    ChartDateYear = 3
//
//} ChartDateType;
//
//// 图表类型
//typedef enum
//{
//    ChartTypeForStep = 0,
//    ChartTypeForHeart = 1,
//    ChartTypeForOx = 2
//} ChartType;

#import <UIKit/UIKit.h>
typedef void (^SNHomePageDetailChartViewBack) ();

@interface SNStepChartView : UIView
@property(nonatomic, strong) SNHomePageDetailChartViewBack backClickBlock;

@property (nonatomic, strong) UIView        *chartView;
@property (nonatomic, strong) CALayer       *backGroundLayer;
@property (nonatomic, strong) SNCustomLabel *selectDateLabel;
@property (nonatomic, strong) SNCustomLabel *valueLabel;
@property (nonatomic, strong) SNCustomLabel *unitLabel;

- (void)UpdateViewWithType:(SelectDateType)type withArray:(NSArray *)dataArray;

@end

